import 'package:json_annotation/json_annotation.dart';

part 'Logistics.g.dart';

@JsonSerializable()
class Logistics {
  Logistics();

  String? id;
  String? expressNo; // 快递编号
  String? logisticsStatus; // 快递主状态 WAIT_ACCEPT:待揽收,ACCEPT:已揽收,TRANSPORT:运输中,DELIVERING:派件中,AGENT_SIGN:已代签收,SIGN:已签收,FAILED:包裹异常
  String? logisticsSubStatus; // 快递子状态
  String? logisticsDesc; // 快递文字信息
  String? logisticsTime; // 快递文字信息发生时间
  int? time; // 快递文字信息发生时间-Long型时间戳，毫秒
  String? logisticsAreaName; // 所在地区，省,市,区或省,市
  String? logisticsAreaCode; // 所在地址行政编码
  String? logisticsCompanyName; // 快递公司名称
  String? logisticsCompanyCode; // 快递公司编码
  String? logisticsCompanyWebsite; // 快递公司官网地址
  String? createTime; // 创建时间


  factory Logistics.fromJson(Map<String,dynamic> json) => _$LogisticsFromJson(json);
  Map<String, dynamic> toJson() => _$LogisticsToJson(this);
}
